package com.thomas.feignclient;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
//@EnableWebMvc
/* Note: Spring boot Application will only initial the bean in the current/sub packages 
 * e.g. only class in com.thomas.feignclient or its sub packages will be initialed 
 * if you put the Controller in com.thomas.feign, then it will be never initialed 
 * */
public class FeignClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(FeignClientApplication.class, args);
    }
}
